{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <!--树状图-->
        <section class="col-lg-2 connectedSortable" style="padding-right:0;">
         <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
             <ul class="sidebar-menu" id="chan">
					{%foreach from=$class_lists key=key item=value%}
                    <li class="treeview {%if $key==$class_data.grade_id%}active{%/if%}" >
                      <a href="#">
                        <i class="glyphicon glyphicon-align-left"></i> <span>{%$value.grade_name%}</span> <i class="fa fa-angle-left pull-right"></i>
                      </a>
                          <ul class="treeview-menu" style="background-color:#fff;">
							{%foreach from=$value.class key=k item=v%}
                            <li {%if $v.class_id==$class_data.class_id%}class="active"{%/if%}><a href="index.php?a=score.rangelist&class_id={%$v.class_id%}"><i class="fa fa-angle-right"></i>  {%$v.class_name%}</a></li>
							{%/foreach%}
                          </ul>
                     </li>
					{%/foreach%}
              </ul>
            </div>
          
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-edit (alias)" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$class_data.class_name%}成绩统计分数段设置</p>
                    <a href="index.php?a=score.rangeadd&class_id={%$class_data.class_id%}" class="btn btn-primary btn-sm" style="float:right; color:#fff;">添加设置</a>
                </div>
                <div class="box-body">
                     <table class="table table-bordered" id="mytable">
                         <thead>
                              <tr style="background-color:#fcb53f;">
                                  <td>考试分类</td>
                                  <td>考试名称</td>
                                  <td>学科</td>
                                  <td>满分</td>
                                  <td>分阶</td>
                                  <td>优秀分数段</td>
                                  <td width="90">操作</td>
                              </tr>
                         </thead>
							{%foreach from=$range_lists key=key item=value%}
                              <tr>
                                  <td>{%$value.exam_type%}</td>
                                  <td>{%$value.exam_name%}</td>
                                  <td>{%$value.subject_name%}</td>
                                  <td>{%$value.range_full%} {%if $value.range_fullopen=='1'%}(启用){%/if%}</td>
                                  <td>
								  {%foreach from=$value.range_level key=k item=v%}
                                      <p>{%$v.name%}: {%$v.min%}~{%$v.max%}</p>
								  {%/foreach%}
                                  </td>
                                  <td>
								  {%foreach from=$value.range_section key=k item=v%}
                                      <p>{%$score_section_ini.$k%}分数段:{%$v.min%}~{%$v.max%} {%if $v.open=='1'%}(启用){%/if%}</p>
								  {%/foreach%}
                                  </td>
                                  <td>
                                      <a href="index.php?a=score.rangeupdate&range_id={%$value.range_id%}" class="btn btn-warning btn-sm" title="修改"><i class="fa fa-edit"></i></a>
									  <a href="index.php?a=score.rangedel&range_id={%$value.range_id%}&class_id={%$class_data.class_id%}" onclick="if(confirm('警告！确认删除信息?')==false)return false;" class="btn btn-danger btn-sm" title="删除"><i class="fa fa-trash"></i></a>
                                  </td>
                              </tr>
							{%/foreach%}
                     </table>
                      
				</div><!--box-body -->
                <div class="box-footer text-center">
                    {%$page%}
                </div>
              </form>
           </div><!--box box-default box-solid-->
         </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}

